url = 'https://www.acwing.com/problem/content/3732/'

for i in range(int(input())):
    n, a = int(input()), list(map(int, input().split()))
    arr = [0] * (n + 5)
    for j in range(n):
        arr[max(0, j - a[j] + 1)] += 1
        arr[j + 1] -= 1
    for j in range(1, n):
        arr[j] += arr[j - 1]
    for b in arr[:n]:
        print(1 if b else 0, end=' ')
    print()
